package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医疗机构管理对象 sys_medical
 * 
 * @author moweiyu
 * @date 2021-04-30
 */
public class SysMedical extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 机构编号 */
    @Excel(name = "机构编号")
    private Long medicalId;

    /** 机构名称 */
    @Excel(name = "机构名称")
    private String medicalName;

    /** 行政区域编号 */
    @Excel(name = "行政区域编号")
    private Long areaId;

    /** 主办单位 */
    @Excel(name = "主办单位")
    private String host;

    /** 成立时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成立时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 负责人 */
    @Excel(name = "负责人")
    private String director;

    /** 注册资金 */
    @Excel(name = "注册资金")
    private Long capital;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMedicalId(Long medicalId) 
    {
        this.medicalId = medicalId;
    }

    public Long getMedicalId() 
    {
        return medicalId;
    }
    public void setMedicalName(String medicalName) 
    {
        this.medicalName = medicalName;
    }

    public String getMedicalName() 
    {
        return medicalName;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setHost(String host) 
    {
        this.host = host;
    }

    public String getHost() 
    {
        return host;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setDirector(String director) 
    {
        this.director = director;
    }

    public String getDirector() 
    {
        return director;
    }
    public void setCapital(Long capital) 
    {
        this.capital = capital;
    }

    public Long getCapital() 
    {
        return capital;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("medicalId", getMedicalId())
            .append("medicalName", getMedicalName())
            .append("areaId", getAreaId())
            .append("host", getHost())
            .append("startTime", getStartTime())
            .append("director", getDirector())
            .append("capital", getCapital())
            .toString();
    }
}
